---
# OSBS expects the build image to be named buildroot
atomic_reactor_tag: buildroot

# Method to obtain atomic-reactor image, currently supported are:
# pull - pull the image from a registry
# git  - build the image from git repository
# rpm  - build the image from the local bundled rpm sources
atomic_reactor_source: rpm

# Configuration for atomic_reactor_source == pull
atomic_reactor_pull:
  registry: registry.hub.docker.com
  image: slavek/atomic-reactor:latest

# Configuration for atomic_reactor_source == git
atomic_reactor_git:
  # base image source
  base_registry: registry.hub.docker.com
  base_image: library/fedora:latest
  # allow retagging the base image to match FROM in Dockerfile
  base_image_retag: fedora:latest
  # Dockerfile source
  git_url: https://github.com/projectatomic/atomic-reactor.git
  git_branch: master
  git_subdir: ""
  git_local_path: "{{ ansible_env.HOME }}/atomic-reactor-buildroot"

atomic_reactor_rpm:
  copr: True
  buildroot_cmd: atomic-reactor create-build-image --reactor-tarball-path /usr/share/atomic-reactor/atomic-reactor.tar.gz /usr/share/atomic-reactor/images/dockerhost-builder buildroot
